-- GENERATED SPELL FOR [Goramosh] --


function spell0_26349(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(20828,pUnit)
pUnit:RegisterEvent('Sorts_26349', 8256, 1)
end

function spell1_26349(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26349', 7000, 1)
end

function Sorts_26349(pUnit, Event)
local choix_sorts_26349 = math.random(0, 1)
if choix_sorts_26349 == 0 then
pUnit:RegisterEvent('spell0_26349', 1, 1)
end
if choix_sorts_26349 == 1 then
pUnit:RegisterEvent('spell1_26349', 1, 1)
end
end

function mob26349_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26349', math.random(1500, 3000), 1)
end

function mob26349_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26349_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26349_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26349, 1, 'mob26349_Action')
RegisterUnitEvent(26349, 2, 'mob26349_Leave')
RegisterUnitEvent(26349, 3, 'mob26349_Kill')
RegisterUnitEvent(26349, 4, 'mob26349_Die')
